hey guys, i've been googling for over an hour and haven't found anything that helped, so i thought i'd post here to see if anyone can help me solve my problem, here is my source
Code:
#include <windows.h>
#include "msgrua.h"
#include "msgruaid.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
IMessenger *pIMessenger;
CoCreateInstance(CLSID_Messenger, NULL, CLSCTX_ALL, IID_IMessenger, (void **)&pIMessenger);
return 0;
}
and when i try to compile i get the following errors:
Code:
incompatible type for argument 1 of `CoCreateInstance'
incompatible type for argument 4 of `CoCreateInstance'
i know the error is telling me that the arguments 1 and 4 inside CoCreateInstance are not compatible, but i have no idea why, im using dev-cpp if it helps, thanks in advance.